package ai.zixing.filter;

import ai.zixing.OrderContext;
import ai.zixing.OrderHandleIntercept;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(2)
@Component
public class ValidOrderHandleInterceptService implements OrderHandleIntercept {
//    @Override
//    public int sort() {
//        //执行顺序为 2
//        return 2;
//    }

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("检查请求参数是否合法,并且获取客户的银行账户");
        return context;
    }
}
